package cn.aib.eduservice.client;

import cn.aib.eduservice.client.impl.OrderClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-order",fallback = OrderClientImpl.class)
@Component
public interface OrderClient {
    //服务方法
    @GetMapping("/orderservice/order/isOrderByPay/{courseId}/{MemberId}")
    public Boolean isOrderByPay(@PathVariable("courseId") String courseId,@PathVariable("MemberId") String MemberId);

}
